<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE struts PUBLIC
        "-//Apache Software Foundation//DTD Struts Configuration 2.5//EN"
        "http://struts.apache.org/dtds/struts-2.5.dtd">
<struts> 
    <constant name="struts.i18n.encoding" value="utf-8"/>
    <include file="struts-default.xml"/>
    <!-- 当struts配置文件修改后，系统是否自动加载该文件，默认：false, 开发时true -->
    <constant name="struts.configuration.xml.reload" value="true"/>
    <!-- 是否开启动态方法调用 -->
    <constant name="struts.enable.DynamicMethodInvocation" value="false"/>
    <!--Dev Mode-->
    <constant name="struts.devMode" value="false"/>


    <!-- 自动生成的源码 -->
    <package name="template_coding_ajax" namespace="/admin123/fm" extends="json-default" strict-method-invocation="false">
        <action name="templateFmAjax_*" class="templateAction"  method="{1}">
            <result name="jsonResult" type="json">
                <param name="root">result</param>
            </result>
            <result name="jsonArray" type="json">
                <param name="root">jsonArrayResult</param>
            </result>
        </action>
    </package>

    <#list strXmlList as item><package name="${item.classNameFirstWordLower}_coding_ajax" namespace="/admin123/coding/${item.classNameFirstWordLower}" extends="json-default" strict-method-invocation="false">
        <action name="${item.classNameFirstWordLower}Ajax_*" class="${item.classNameFirstWordLower}Action"  method="{1}">
            <result name="jsonResult" type="json">
                <param name="root">result</param>
            </result>
            <result name="jsonArray" type="json">
                <param name="root">jsonArrayResult</param>
            </result>
        </action>
    </package>
    </#list>


</struts>
